package com.zlzxm.sorting.ui.fragment

import androidx.viewbinding.ViewBinding
import com.zlzxm.sorting.databinding.FmSettingSizeBinding
import com.zlzxm.sorting.databinding.FmWeightBinding
import com.zlzxm.sorting.util.ui.manager.AbsFmBase

class FmSettingSize : AbsFmBase() {


    val binding by lazy {

        FmSettingSizeBinding.inflate(layoutInflater)
    }

    override fun initBinding(): ViewBinding? {

        return  binding
    }

    override fun initViewModel() {
    }

    override fun initView() {

        binding.llCalculateOne.setOnClickListener{
            binding.llCalculateOne.isSelected = true
            binding.llCalculateTwo.isSelected = false
        }

        binding.llCalculateTwo.setOnClickListener{

            binding.llCalculateOne.isSelected = false
            binding.llCalculateTwo.isSelected = true

        }



        binding.llConvertOne.setOnClickListener{
            binding.llConvertOne.isSelected = true
            binding.llConvertTwo.isSelected = false
        }

        binding.llConvertTwo.setOnClickListener{

            binding.llConvertOne.isSelected = false
            binding.llConvertTwo.isSelected = true

        }

        binding.llProcessOne.setOnClickListener{
            binding.llProcessOne.isSelected = true
            binding.llProcessTwo.isSelected = false
        }

        binding.llProcessTwo.setOnClickListener{

            binding.llProcessOne.isSelected = false
            binding.llProcessTwo.isSelected = true

        }



        binding.llProcessOne.setOnClickListener{
            binding.llProcessOne.isSelected = true
            binding.llProcessTwo.isSelected = false
        }

        binding.llProcessTwo.setOnClickListener{

            binding.llProcessOne.isSelected = false
            binding.llProcessTwo.isSelected = true

        }

        binding.llGetSizeOne.setOnClickListener{
            binding.llGetSizeOne.isSelected = true
            binding.llGetSizeTwo.isSelected = false
        }

        binding.llGetSizeTwo.setOnClickListener{

            binding.llGetSizeOne.isSelected = false
            binding.llGetSizeTwo.isSelected = true

        }


        binding.llAutoGetOne.setOnClickListener{
            binding.llAutoGetOne.isSelected = true
            binding.llAutoGetTwo.isSelected = false
        }

        binding.llAutoGetTwo.setOnClickListener{

            binding.llAutoGetOne.isSelected = false
            binding.llAutoGetTwo.isSelected = true

        }


    }

    override fun initData() {
    }
}